package com.itheima.job5;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;

public class test {
    public static void main(String[] args) {
        LinkedHashMap<Student,String> students = new LinkedHashMap<>();
        students.put(new Student(1001,"张三",91),"上海航头");
        students.put(new Student(1002,"李四",92),"上海航头");
        students.put(new Student(1003,"王五",91),"上海航头");
        students.put(new Student(1001,"赵六",81),"上海航头");
        Set<Map.Entry<Student, String>> entries = students.entrySet();
        entries.forEach(entry-> System.out.println(entry.getKey()+" "+entry.getValue()));

    }
}
